package com.dao;

import com.entity.Userinfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author ：Fmc
 * @date ：Created in 2022/6/9 16:00
 * @description：用户表的dao层
 * @modified By：
 * @version: 1.0
 */
public interface UserDao {
    /**
     * @create by: Fmc
     * @description: 查找全部用户
     * @create time: 2022/6/9 16:12
     * @return: List<Userinfo>
     */
    List<Userinfo> selectPageUser(Map map);
    /**
     * @create by: Fmc
     * @description: 获取信息总条数
     * @create time: 2022/6/9 16:36
     * @return: int
     */
    int getCount();
    /**
     * @create by: Fmc
     * @description: 添加新用户
     * @create time: 2022/6/9 19:06
     * @return: int
     */
    int addUser(Userinfo userinfo);
    /**
     * @create by: Fmc
     * @description: 删除用户
     * @create time: 2022/6/9 19:06
     * @return: int
     */
    int deleteUser(Integer userids);
    /**
     * @create by: Fmc
     * @description: 更改用户信息
     * @create time: 2022/6/9 20:26
     * @return: int
     */
    int updateUser(Userinfo userinfo);
    /**
     * @create by: Fmc
     * @description: 重置密码
     * @create time: 2022/6/9 20:35
     * @return: int
     */
    int resetPwd(Userinfo userinfo);
    /**
     * @create by: Fmc
     * @description: 登录校验
     * @create time: 2022/6/9 20:46
     * @return: List<Userinfo>
     */
    List<Userinfo> loginUser(String username);
}
